package com.example.demo.controller;

import com.example.demo.djangoAPI.DjangoAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @ClassName: DjangoController
 * @Description:
 * @date 2021/3/29
 * @Copyright
 */

@RestController
public class DjangoController {

    @Autowired
    private DjangoAPI djangoAPI;

    @RequestMapping(value = "demo",method = RequestMethod.GET)
    public String getDjangoTest(@RequestParam String id){
        String djangoTest = djangoAPI.getDjangoTest(id);
        return djangoTest;
    }
}
